import request from '@/utils/request'

export function getFilePage(page = 1, options = {}, pageSize = 12) {
  return request({
    url: '/api/file',
    params: {
      page,
      ...options,
      pageSize
    }
  })
}

export function DeletFile(id) {
  return request({
    url: `/api/file/${id}`,
    method: 'delete'
  })
}

export function Upload() {
  return request({
    url: `/api/file/upload`,
    method: 'post'
    // data: unique
  })
}
